import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

import { ApiProperty } from '@nestjs/swagger';
import { BaseEntity } from '../base.entity';

@Entity({ name: 'sys_user_notice_type' })
export default class SysUserNoticeType extends BaseEntity {
  @PrimaryGeneratedColumn({ name: 'user_id', type: 'bigint' })
  @ApiProperty()
  userId: number;

  @ApiProperty()
  @Column()
  type: number;

  @ApiProperty()
  @Column({ name: 'message_notice' })
  messageNotice: number;

  @ApiProperty()
  @Column({ name: 'email_notice' })
  emailNotice: number;
}
